<div class="desposits index">
	<h2><?php __('Depósitos');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id');?></th>
<!--                        <th><?php //echo $this->Paginator->sort('Provincia','provinces');?></th>-->
<!--			<th><?php //echo $this->Paginator->sort('Localidad','locations_id');?></th>-->
			<th><?php echo $this->Paginator->sort('descripcion');?></th>
                        <th><?php echo $this->Paginator->sort('direccion');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($desposits as $desposit):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $desposit['Desposit']['id']; ?>&nbsp;</td>
<!--                <td>
			<?php //echo $this->Html->link($provinces[$desposit['Locations']['provinces_id']], array('controller' => 'provinces', 'action' => 'view', $desposit['Locations']['provinces_id'])); ?>
		</td>
		<td>
			<?php //echo $this->Html->link($desposit['Locations']['descripcion'], array('controller' => 'locations', 'action' => 'view', $desposit['Locations']['id'])); ?>
		</td>-->
		<td><?php echo $desposit['Desposit']['descripcion']; ?>&nbsp;</td>
                <td><?php echo $desposit['Desposit']['direccion']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $html->image('search.png', array( 'width' => '13', 'heigth' => '13', 'alt' =>'Ver', 'title' => 'Ver', 'url' => array('action' => 'view', $desposit['Desposit']['id'])));?>
			<?php echo $html->image('edit.png', array( 'width' => '13', 'heigth' => '13', 'alt' =>'Editar', 'title' => 'Editar', 'url' => array('action' => 'edit', $desposit['Desposit']['id']) ));?>
			<?php //echo $this->Html->link(__('Borrar', true), array('action' => 'delete', $desposit['Desposit']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $desposit['Desposit']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Pagina %page% de %pages%, mostrando %current% registros de un total de %count%, comienza en %start%, termina en %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('anterior', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('siguiente', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<h3><?php __('Acciones'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Nuevo Desposito', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('Listar Localidades', true), array('controller' => 'locations', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nueva localidad', true), array('controller' => 'locations', 'action' => 'add')); ?> </li>
	</ul>
</div>